package produce;

public class Customer extends Thread{
	private Repository<BaoZi> zhenglong;
	public Customer(Repository<BaoZi> zhenglong){
		this.zhenglong =zhenglong;
		
	}
public void run(){
	while(true){
		BaoZi bz=zhenglong.take();
		System.out.println("卖了"+bz.getName());
	}
}
	 {
		
	}

}
